Module 6 - Processing Strings and Text

Learning Objectives

  • Learn to use regular expressions (regex) to find text
  • Process and transform strings in R
  • Working with factors for Categorical data

Readings

Additional Resources:

Regular expressions are useful in a large number of applications. The first website provides an advanced tutorial, the second one provides fun exercises. If you are unsatisfied and want to learn even more, regular expressions are equivalent to a computer science concept known as “finite state automata”. You can dive way deeper by reading these lecture notes:

This paper discusses both tidyverse and base R approaches to categorical data.